<?php
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">";
echo "<html>";
echo "<head>";
#echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" >";
echo "<meta http-equiv=\"expires\" content=\"0\">";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">";
echo "<meta http-equiv=\"X-UA-Compatible\" content=\"chrome=1\">";
echo "<title>DicomScience</title>";
/*
 * Select browser-specific stylesheet
 */

$thdir = $_SESSION['theme'];

$browser = $_SESSION['remoteBrowser'];

if ($browser == "IE") {
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$thdir/ie.css\">";			
} elseif ($browser == "Opera") {
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$thdir/opera.css\">";	
} elseif ($browser == "Firefox") {
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$thdir/firefox.css\">";	
} elseif ($browser == "Safari") {
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$thdir/safari.css\">";	
} else {
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$thdir/firefox.css\">";	
}
echo "<meta name=\"description\" content=\"$nls_meta_description\">";

/*
 * Include Dependencies
 */
?>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript" src="jquery-ui-1.7.2.js"></script>
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.core.js"></script> 
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.draggable.js"></script> 
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.resizable.js"></script> 
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.dialog.js"></script> 
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.tabs.js"></script> 
<script type="text/javascript" src="./themes/lib/jQueryUI/ui/ui.accordion.js"></script>
<script type="text/javascript" src="./themes/lib/jQueryUI/external/bgiframe/jquery.bgiframe.js"></script> 
<link type="text/css" href="./themes/lib/jQueryUI/themes/base/ui.all.css" rel="stylesheet" /> 
<script type="text/javascript" src="./themes/lib/jquery.corner.js"></script>
<script type="text/javascript" src="./themes/lib/wtooltip.js"></script>
<?php
echo "</head>";

/*
 * Load Native Language
 */
$language = $_SESSION['lang'];

if ($language == '1'){
	require('./language/german.php');
} elseif ($language == '2'){
	require('./language/english.php');
} elseif ($language == '3'){
	require('./language/french.php');
} elseif ($language == '4'){
	require('./language/italian.php');
}

?>